<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="produce" :rules="rules" label-width="100px" id="mvcfm">
      <el-button @click="gotoPage('/crm/sale/ProductPrice?'+vueparams+'')" type='primary' size="mini"><i class='fa fa-reply'></i>返回</el-button>
      <div class="form-unit">
        <span class="mvc-title-left"> 产品信息 </span>
      </div>
      <div>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品条形码" prop="">
              {{produce.product_barcode}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="产品分类" prop="">
              {{produce.product_classname}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品名称" prop="">
              {{produce.product_name}}
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="产品缩写名" prop="">
              {{produce.product_namebar}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品型号" prop="">
              {{produce.product_model}}
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="产品规格" prop="">
              {{produce.product_norm}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="24">
            <el-form-item label="产品系列" prop="">
              {{produce.series_name}}
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="产品状态描述" prop="">
              {{produce.product_des}}
            </el-form-item>
          </el-col>
        </el-row>
      </div>
      <el-table :data="s_price">
        <el-table-column label="客户等级" prop="price_crate">
        </el-table-column>
        <el-table-column label="价格" prop="price_pro">
        </el-table-column>
      </el-table>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ProductDetSal',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        produce: {
          product_barcode: null,
          product_classname: null,
          product_name: null,
          product_namebar: null,
          product_model: null,
          product_norm: null,
          throughput_unit: null,
          product_unit: null,
          series_name: null,
          product_des: null,
        },
        s_price: [],
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/crm/sale/ProductDetSal/productDetSal?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
